<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改供应商绩效')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-performance-edit" th:object="${ryVendorPerformance}">
            <input name="performanceId" th:field="*{performanceId}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">关联分析ID：</label>
                    <div class="col-sm-8">
                        <input name="analysisId" th:field="*{analysisId}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">供应商ID：</label>
                    <div class="col-sm-8">
                        <input name="vendorId" th:field="*{vendorId}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">供应商名称：</label>
                    <div class="col-sm-8">
                        <input name="vendorName" th:field="*{vendorName}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">交货评分：</label>
                    <div class="col-sm-8">
                        <input name="deliveryScore" th:field="*{deliveryScore}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">成本效益：</label>
                    <div class="col-sm-8">
                        <input name="costEfficiency" th:field="*{costEfficiency}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">质量合格率：</label>
                    <div class="col-sm-8">
                        <input name="qualityRate" th:field="*{qualityRate}" class="form-control" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "pims/performance";
        $("#form-performance-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-performance-edit').serialize());
            }
        }
    </script>
</body>
</html>